<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>MySQLi扩展功能概述</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqli.notes.html">Notes</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.mysqli.html">MySQLi</a></div>
 <div class="up"><a href="book.mysqli.html">Mysqli</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mysqli.summary" class="chapter">

 <h1>MySQLi扩展功能概述</h1>


 <table class="doctable informaltable">
  
   <thead>
    <tr>
     <th>MySQLi类</th>
    </tr>

    <tr>
     <th>面向对象接口</th>
     <th>面向过程接口</th>
     <th>别名</th>
     <th>描述</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td><em class="emphasis">属性</em></td>
    </tr>

    <tr>
     <td><a href="mysqli.affected-rows.html" class="link">$mysqli-&gt;affected_rows</a></td>
     <td><span class="function"><a href="mysqli.affected-rows.html" class="function">mysqli_affected_rows()</a></span></td>
     <td>N/A</td>
     <td>获取前一个Mysql操作的受影响行数</td>
    </tr>

    <tr>
     <td><a href="mysqli.client-info.html" class="link">$mysqli-&gt;client_info</a></td>
     <td><span class="function"><a href="mysqli.get-client-info.html" class="function">mysqli_get_client_info()</a></span></td>
     <td>N/A</td>
     <td>返回字符串类型的Mysql客户端版本信息</td>
    </tr>

    <tr>
     <td><a href="mysqli.client-version.html" class="link">$mysqli-&gt;client_version</a></td>
     <td><span class="function"><a href="mysqli.get-client-version.html" class="function">mysqli_get_client_version()</a></span></td>
     <td>N/A</td>
     <td>返回整型的Mysql客户端版本信息</td>    </tr>

    <tr>
     <td><a href="mysqli.connect-errno.html" class="link">$mysqli-&gt;connect_errno</a></td>
     <td><span class="function"><a href="mysqli.connect-errno.html" class="function">mysqli_connect_errno()</a></span></td>
     <td>N/A</td>
     <td>返回最后一次连接调用的错误代码</td>
    </tr>

    <tr>
     <td><a href="mysqli.connect-error.html" class="link">$mysqli-&gt;connect_error</a></td>
     <td><span class="function"><a href="mysqli.connect-error.html" class="function">mysqli_connect_error()</a></span></td>
     <td>N/A</td>
     <td>返回一个字符串描述的最后一次连接调用的错误代码</td>
    </tr>

    <tr>
     <td><a href="mysqli.errno.html" class="link">$mysqli-&gt;errno</a></td>
     <td><span class="function"><a href="mysqli.errno.html" class="function">mysqli_errno()</a></span></td>
     <td>N/A</td>
     <td>返回最近的函数调用产生的错误代码</td>
    </tr>

    <tr>
     <td><a href="mysqli.error.html" class="link">$mysqli-&gt;error</a></td>
     <td><span class="function"><a href="mysqli.error.html" class="function">mysqli_error()</a></span></td>
     <td>N/A</td>
     <td>返回字符串描述的最近一次函数调用产生的错误代码</td>
    </tr>

    <tr>
     <td><a href="mysqli.field-count.html" class="link">$mysqli-&gt;field_count</a></td>
     <td><span class="function"><a href="mysqli.field-count.html" class="function">mysqli_field_count()</a></span></td>
     <td>N/A</td>
     <td>返回最近一次查询获取到的列的数目</td>
    </tr>

    <tr>
     <td><a href="mysqli.get-host-info.html" class="link">$mysqli-&gt;host_info</a></td>
     <td><span class="function"><a href="mysqli.get-host-info.html" class="function">mysqli_get_host_info()</a></span></td>
     <td>N/A</td>
     <td>返回一个能够代表使用的连接类型的字符串</td>
    </tr>

    <tr>
     <td><a href="mysqli.get-proto-info.html" class="link">$mysqli-&gt;protocol_version</a></td>
     <td><span class="function"><a href="mysqli.get-proto-info.html" class="function">mysqli_get_proto_info()</a></span></td>
     <td>N/A</td>
     <td>返回使用的Mysql协议的版本信息</td>
    </tr>

    <tr>
     <td><a href="mysqli.get-server-info.html" class="link">$mysqli-&gt;server_info</a></td>
     <td><span class="function"><a href="mysqli.get-server-info.html" class="function">mysqli_get_server_info()</a></span></td>
     <td>N/A</td>
     <td>返回Mysql服务端版本的信息</td>
    </tr>

    <tr>
     <td><a href="mysqli.get-server-version.html" class="link">$mysqli-&gt;server_version</a></td>
     <td><span class="function"><a href="mysqli.get-server-version.html" class="function">mysqli_get_server_version()</a></span></td>
     <td>N/A</td>
     <td>返回整型的Mysql服务端版本信息</td>
    </tr>

    <tr>
     <td><a href="mysqli.info.html" class="link">$mysqli-&gt;info</a></td>
     <td><span class="function"><a href="mysqli.info.html" class="function">mysqli_info()</a></span></td>
     <td>N/A</td>
     <td>最近一次执行的查询的检索信息</td>
    </tr>

    <tr>
     <td><a href="mysqli.insert-id.html" class="link">$mysqli-&gt;insert_id</a></td>
     <td><span class="function"><a href="mysqli.insert-id.html" class="function">mysqli_insert_id()</a></span></td>
     <td>N/A</td>
     <td>返回最后一次查询自动生成并使用的id</td>
    </tr>

    <tr>
     <td><a href="mysqli.sqlstate.html" class="link">$mysqli-&gt;sqlstate</a></td>
     <td><span class="function"><a href="mysqli.sqlstate.html" class="function">mysqli_sqlstate()</a></span></td>
     <td>N/A</td>
     <td>返回前一个Mysql操作的SQLSTATE错误</td>
    </tr>

    <tr>
     <td><a href="mysqli.warning-count.html" class="link">$mysqli-&gt;warning_count</a></td>
     <td><span class="function"><a href="mysqli.warning-count.html" class="function">mysqli_warning_count()</a></span></td>
     <td>N/A</td>
     <td>返回给定链接最后一次查询的警告数量</td>
    </tr>

    <tr>
     <td><em class="emphasis">方法</em></td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.autocommit.html" class="methodname">mysqli->autocommit()</a></span></td>
     <td><span class="function"><a href="mysqli.autocommit.html" class="function">mysqli_autocommit()</a></span></td>
     <td>N/A</td>
     <td>打开或关闭数据库的自动提交功能</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.change-user.html" class="methodname">mysqli->change_user()</a></span></td>
     <td><span class="function"><a href="mysqli.change-user.html" class="function">mysqli_change_user()</a></span></td>
     <td>N/A</td>
     <td>更改指定数据库连接的用户</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.character-set-name.html" class="methodname">mysqli->character_set_name()</a></span>,<a href="mysqli.character-set-name.html" class="link">
      mysqli-&gt;client_encoding</a></td>
     <td><span class="function"><a href="mysqli.character-set-name.html" class="function">mysqli_character_set_name()</a></span></td>
     <td><span class="function"><a href="function.mysqli-client-encoding.html" class="function">mysqli_client_encoding()</a></span></td>
     <td>返回数据库连接的默认字符集</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.close.html" class="methodname">mysqli->close()</a></span></td>
     <td><span class="function"><a href="mysqli.close.html" class="function">mysqli_close()</a></span></td>
     <td>N/A</td>
     <td>关闭先前打开的数据库连接</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.commit.html" class="methodname">mysqli->commit()</a></span></td>
     <td><span class="function"><a href="mysqli.commit.html" class="function">mysqli_commit()</a></span></td>
     <td>N/A</td>
     <td>提交当前事务</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.construct.html" class="methodname">mysqli::__construct()</a></span></td>
     <td><span class="function"><a href="function.mysqli-connect.html" class="function">mysqli_connect()</a></span></td>
     <td>N/A</td>
     <td>打开一个到Mysql服务端的新的连接［注意：静态方法］</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.debug.html" class="methodname">mysqli->debug()</a></span></td>
     <td><span class="function"><a href="mysqli.debug.html" class="function">mysqli_debug()</a></span></td>
     <td>N/A</td>
     <td>执行调试操作</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.dump-debug-info.html" class="methodname">mysqli->dump_debug_info()</a></span></td>
     <td><span class="function"><a href="mysqli.dump-debug-info.html" class="function">mysqli_dump_debug_info()</a></span></td>
     <td>N/A</td>
     <td>将调试信息转储到日志中</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.get-charset.html" class="methodname">mysqli->get_charset()</a></span></td>
     <td><span class="function"><a href="mysqli.get-charset.html" class="function">mysqli_get_charset()</a></span></td>
     <td>N/A</td>
     <td>返回对象的字符集</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.get-connection-stats.html" class="methodname">mysqli->get_connection_stats()</a></span></td>
     <td><span class="function"><a href="mysqli.get-connection-stats.html" class="function">mysqli_get_connection_stats()</a></span></td>
     <td>N/A</td>
     <td>返回客户端连接的统计信息。 仅可用于 <a href="book.mysqlnd.html" class="link">mysqlnd</a>。</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.get-client-info.html" class="methodname">mysqli->get_client_info()</a></span></td>
     <td><span class="function"><a href="mysqli.get-client-info.html" class="function">mysqli_get_client_info()</a></span></td>
     <td>N/A</td>
     <td>返回字符串描述的Mysql客户端版本</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.get-client-stats.html" class="methodname">mysqli->get_client_stats()</a></span></td>
     <td><span class="function"><a href="mysqli.get-client-stats.html" class="function">mysqli_get_client_stats()</a></span></td>
     <td>N/A</td>
     <td>返回每个客户端进程的统计信息。 仅可用于 <a href="book.mysqlnd.html" class="link">mysqlnd</a>。</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.get-cache-stats.html" class="methodname">mysqli->get_cache_stats()</a></span></td>
     <td><span class="function"><a href="mysqli.get-cache-stats.html" class="function">mysqli_get_cache_stats()</a></span></td>
     <td>N/A</td>
     <td>返回客户端的zval缓存统计信息。 仅可用于 <a href="book.mysqlnd.html" class="link">mysqlnd</a>。</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.get-server-info.html" class="methodname">mysqli->get_server_info()</a></span></td>
     <td><span class="function"><a href="mysqli.get-server-info.html" class="function">mysqli_get_server_info()</a></span></td>
     <td>N/A</td>
     <td>没有文档</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.get-warnings.html" class="methodname">mysqli->get_warnings()</a></span></td>
     <td><span class="function"><a href="mysqli.get-warnings.html" class="function">mysqli_get_warnings()</a></span></td>
     <td>N/A</td>
     <td>没有文档</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.init.html" class="methodname">mysqli::init()</a></span></td>
     <td><span class="function"><a href="mysqli.init.html" class="function">mysqli_init()</a></span></td>
     <td>N/A</td>
     <td>初始化mysqli并且返回一个由mysqli_real_connect使用的资源类型。［不是在对象上，是它返回的$mysqli对象］</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.kill.html" class="methodname">mysqli->kill()</a></span></td>
     <td><span class="function"><a href="mysqli.kill.html" class="function">mysqli_kill()</a></span></td>
     <td>N/A</td>
     <td>请求服务器杀死一个Mysql线程</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.more-results.html" class="methodname">mysqli->more_results()</a></span></td>
     <td><span class="function"><a href="mysqli.more-results.html" class="function">mysqli_more_results()</a></span></td>
     <td>N/A</td>
     <td>检查一个多语句查询是否还有其他查询结果集</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.multi-query.html" class="methodname">mysqli->multi_query()</a></span></td>
     <td><span class="function"><a href="mysqli.multi-query.html" class="function">mysqli_multi_query()</a></span></td>
     <td>N/A</td>
     <td>在数据库上执行一个多语句查询</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.next-result.html" class="methodname">mysqli->next_result()</a></span></td>
     <td><span class="function"><a href="mysqli.next-result.html" class="function">mysqli_next_result()</a></span></td>
     <td>N/A</td>
     <td>从multi_query中准备下一个结果集</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.options.html" class="methodname">mysqli->options()</a></span></td>
     <td><span class="function"><a href="mysqli.options.html" class="function">mysqli_options()</a></span></td>
     <td><span class="function"><a href="function.mysqli-set-opt.html" class="function">mysqli_set_opt()</a></span></td>
     <td>设置选项</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.ping.html" class="methodname">mysqli->ping()</a></span></td>
     <td><span class="function"><a href="mysqli.ping.html" class="function">mysqli_ping()</a></span></td>
     <td>N/A</td>
     <td>ping一个服务器连接，或者如果那个连接断了尝试重连</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.prepare.html" class="methodname">mysqli->prepare()</a></span></td>
     <td><span class="function"><a href="mysqli.prepare.html" class="function">mysqli_prepare()</a></span></td>
     <td>N/A</td>
     <td>准备一个用于执行的SQL语句</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.query.html" class="methodname">mysqli->query()</a></span></td>
     <td><span class="function"><a href="mysqli.query.html" class="function">mysqli_query()</a></span></td>
     <td>N/A</td>
     <td>在数据库上执行一个查询</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.real-connect.html" class="methodname">mysqli->real_connect()</a></span></td>
     <td><span class="function"><a href="mysqli.real-connect.html" class="function">mysqli_real_connect()</a></span></td>
     <td>N/A</td>
     <td>打开一个到Mysql服务端的连接</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.real-escape-string.html" class="methodname">mysqli->real_escape_string()</a></span>,
      <span class="methodname"><a href="function.mysqli-escape-string.html" class="methodname">mysqli->escape_string()</a></span></td>
     <td><span class="function"><a href="mysqli.real-escape-string.html" class="function">mysqli_real_escape_string()</a></span></td>
     <td><span class="function"><a href="function.mysqli-escape-string.html" class="function">mysqli_escape_string()</a></span></td>
     <td>转义字符串中用于SQL语句中的特殊字符，这个转换会考虑连接的当前字符集。</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.real-query.html" class="methodname">mysqli->real_query()</a></span></td>
     <td><span class="function"><a href="mysqli.real-query.html" class="function">mysqli_real_query()</a></span></td>
     <td>N/A</td>
     <td>执行一个SQL查询</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.rollback.html" class="methodname">mysqli->rollback()</a></span></td>
     <td><span class="function"><a href="mysqli.rollback.html" class="function">mysqli_rollback()</a></span></td>
     <td>N/A</td>
     <td>回滚当前事务</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.select-db.html" class="methodname">mysqli->select_db()</a></span></td>
     <td><span class="function"><a href="mysqli.select-db.html" class="function">mysqli_select_db()</a></span></td>
     <td>N/A</td>
     <td>为数据库查询选择默认数据库</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.set-charset.html" class="methodname">mysqli->set_charset()</a></span></td>
     <td><span class="function"><a href="mysqli.set-charset.html" class="function">mysqli_set_charset()</a></span></td>
     <td>N/A</td>
     <td>设置默认的客户端字符集</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.set-local-infile-default.html" class="methodname">mysqli->set_local_infile_default()</a></span></td>
     <td><span class="function"><a href="mysqli.set-local-infile-default.html" class="function">mysqli_set_local_infile_default()</a></span></td>
     <td>N/A</td>
     <td>清除用户为load data local infile命令定义的处理程序</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.set-local-infile-handler.html" class="methodname">mysqli->set_local_infile_handler()</a></span></td>
     <td><span class="function"><a href="mysqli.set-local-infile-handler.html" class="function">mysqli_set_local_infile_handler()</a></span></td>
     <td>N/A</td>
     <td>设置LOAD DATA LOCAL INFILE命令执行的回调函数</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.ssl-set.html" class="methodname">mysqli->ssl_set()</a></span></td>
     <td><span class="function"><a href="mysqli.ssl-set.html" class="function">mysqli_ssl_set()</a></span></td>
     <td>N/A</td>
     <td>使用SSL建立安装连接</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.stat.html" class="methodname">mysqli->stat()</a></span></td>
     <td><span class="function"><a href="mysqli.stat.html" class="function">mysqli_stat()</a></span></td>
     <td>N/A</td>
     <td>获取当前系统状态</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.stmt-init.html" class="methodname">mysqli->stmt_init()</a></span></td>
     <td><span class="function"><a href="mysqli.stmt-init.html" class="function">mysqli_stmt_init()</a></span></td>
     <td>N/A</td>
     <td>初始化一个语句并且返回一个mysqli_stmt_prepare使用的对象</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.store-result.html" class="methodname">mysqli->store_result()</a></span></td>
     <td><span class="function"><a href="mysqli.store-result.html" class="function">mysqli_store_result()</a></span></td>
     <td>N/A</td>
     <td>传输最后一个查询的结果集</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.thread-id.html" class="methodname">mysqli->thread_id()</a></span></td>
     <td><span class="function"><a href="mysqli.thread-id.html" class="function">mysqli_thread_id()</a></span></td>
     <td>N/A</td>
     <td>返回当前连接的线程ID</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.thread-safe.html" class="methodname">mysqli->thread_safe()</a></span></td>
     <td><span class="function"><a href="mysqli.thread-safe.html" class="function">mysqli_thread_safe()</a></span></td>
     <td>N/A</td>
     <td>返回是否设定了线程安全</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli.use-result.html" class="methodname">mysqli->use_result()</a></span></td>
     <td><span class="function"><a href="mysqli.use-result.html" class="function">mysqli_use_result()</a></span></td>
     <td>N/A</td>
     <td>初始化一个结果集的取回</td>
    </tr>

   </tbody>
  
 </table>


 <table class="doctable informaltable">
  
   <thead>
    <tr>
     <th>MySQL_STMT</th>
    </tr>

    <tr>
     <th>面向对象接口</th>
     <th>过程化接口</th>
     <th>别名（不要使用）</th>
     <th>描述</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td><em class="emphasis">属性</em></td>
    </tr>

    <tr>
     <td><a href="mysqli-stmt.affected-rows.html" class="link">$mysqli_stmt-&gt;affected_rows</a></td>
     <td><span class="function"><a href="mysqli-stmt.affected-rows.html" class="function">mysqli_stmt_affected_rows()</a></span></td>
     <td>N/A</td>
     <td>返回最后一条倍执行的语句改变，删除或插入的总行数</td>
    </tr>

    <tr>
     <td><a href="mysqli-stmt.errno.html" class="link">$mysqli_stmt-&gt;errno</a></td>
     <td><span class="function"><a href="mysqli-stmt.errno.html" class="function">mysqli_stmt_errno()</a></span></td>
     <td>N/A</td>
     <td>返回最近一次语句调用的错误代码</td>
    </tr>

    <tr>
     <td><a href="mysqli-stmt.error.html" class="link">$mysqli_stmt-&gt;error</a></td>
     <td><span class="function"><a href="mysqli-stmt.error.html" class="function">mysqli_stmt_error()</a></span></td>
     <td>N/A</td>
     <td>返回最后一条语句错误的字符串描述</td>
    </tr>

    <tr>
     <td><a href="mysqli-stmt.field-count.html" class="link">$mysqli_stmt-&gt;field_count</a></td>
     <td><span class="function"><a href="mysqli-stmt.field-count.html" class="function">mysqli_stmt_field_count()</a></span></td>
     <td>N/A</td>
     <td>返回给定语句得到的字段数量</td>
    </tr>

    <tr>
     <td><a href="mysqli-stmt.insert-id.html" class="link">$mysqli_stmt-&gt;insert_id</a></td>
     <td><span class="function"><a href="mysqli-stmt.insert-id.html" class="function">mysqli_stmt_insert_id()</a></span></td>
     <td>N/A</td>
     <td>获取前一个INSERT操作生成的ID</td>
    </tr>

    <tr>
     <td><a href="mysqli-stmt.num-rows.html" class="link">$mysqli_stmt-&gt;num_rows</a></td>
     <td><span class="function"><a href="mysqli-stmt.num-rows.html" class="function">mysqli_stmt_num_rows()</a></span></td>
     <td>N/A</td>
     <td>返回语句结果集中的行数</td>
    </tr>

    <tr>
     <td><a href="mysqli-stmt.param-count.html" class="link">$mysqli_stmt-&gt;param_count</a></td>
     <td><span class="function"><a href="mysqli-stmt.param-count.html" class="function">mysqli_stmt_param_count()</a></span></td>
     <td><span class="function"><a href="function.mysqli-param-count.html" class="function">mysqli_param_count()</a></span></td>
     <td>返回给定语句中参数数量</td>
    </tr>

    <tr>
     <td><a href="mysqli-stmt.sqlstate.html" class="link">$mysqli_stmt-&gt;sqlstate</a></td>
     <td><span class="function"><a href="mysqli-stmt.sqlstate.html" class="function">mysqli_stmt_sqlstate()</a></span></td>
     <td>N/A</td>
     <td>返回前一个语句操作的SQLSTATE错误代码</td>
    </tr>

    <tr>
     <td><em class="emphasis">方法</em></td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.attr-get.html" class="methodname">mysqli_stmt->attr_get()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.attr-get.html" class="function">mysqli_stmt_attr_get()</a></span></td>
     <td>N/A</td>
     <td>用于获取语句属性的当前值</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.attr-set.html" class="methodname">mysqli_stmt->attr_set()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.attr-set.html" class="function">mysqli_stmt_attr_set()</a></span></td>
     <td>N/A</td>
     <td>用于修改prepared语句的行为</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.bind-param.html" class="methodname">mysqli_stmt->bind_param()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.bind-param.html" class="function">mysqli_stmt_bind_param()</a></span></td>
     <td><span class="function"><a href="function.mysqli-bind-param.html" class="function">mysqli_bind_param()</a></span></td>
     <td>将一个变量作为参数绑定到prepared语句上</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.bind-result.html" class="methodname">mysqli_stmt->bind_result()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.bind-result.html" class="function">mysqli_stmt_bind_result()</a></span></td>
     <td><span class="function"><a href="function.mysqli-bind-result.html" class="function">mysqli_bind_result()</a></span></td>
     <td>将一个变量绑定到一个prepared语句上用于结果存储</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.close.html" class="methodname">mysqli_stmt->close()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.close.html" class="function">mysqli_stmt_close()</a></span></td>
     <td>N/A</td>
     <td>关闭一个prepared语句</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.data-seek.html" class="methodname">mysqli_stmt->data_seek()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.data-seek.html" class="function">mysqli_stmt_data_seek()</a></span></td>
     <td>N/A</td>
     <td>查看语句结果集中的任意行</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.execute.html" class="methodname">mysqli_stmt->execute()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.execute.html" class="function">mysqli_stmt_execute()</a></span></td>
     <td><span class="function"><a href="function.mysqli-execute.html" class="function">mysqli_execute()</a></span></td>
     <td>执行一个prepared查询</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.fetch.html" class="methodname">mysqli_stmt->fetch()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.fetch.html" class="function">mysqli_stmt_fetch()</a></span></td>
     <td><span class="function"><a href="function.mysqli-fetch.html" class="function">mysqli_fetch()</a></span></td>
     <td>从一个prepared语句中抓取结果到限定变量中</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.free-result.html" class="methodname">mysqli_stmt->free_result()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.free-result.html" class="function">mysqli_stmt_free_result()</a></span></td>
     <td>N/A</td>
     <td>释放给定语句处理存储的结果集所占内存</td>
    </tr>

    <tr>
     <td>$mysqli_stmt-&gt;get_result()</td>
     <td>mysqli_stmt_get_result</td>
     <td>N/A</td>
     <td>没有文档 仅可用于 <a href="book.mysqlnd.html" class="link">mysqlnd</a>。</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.get-warnings.html" class="methodname">mysqli_stmt->get_warnings()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.get-warnings.html" class="function">mysqli_stmt_get_warnings()</a></span></td>
     <td>N/A</td>
     <td>没有文档</td>
    </tr>

    <tr>
     <td>$mysqli_stmt-&gt;more_results()</td>
     <td>mysqli_stmt_more_results()</td>
     <td>N/A</td>
     <td>没有文档 仅可用于 <a href="book.mysqlnd.html" class="link">mysqlnd</a>。</td>
    </tr>

    <tr>
     <td>$mysqli_stmt-&gt;next_result()</td>
     <td>mysqli_stmt_next_result()</td>
     <td>N/A</td>
     <td>没有文档 仅可用于 <a href="book.mysqlnd.html" class="link">mysqlnd</a>。</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.num-rows.html" class="methodname">mysqli_stmt->num_rows()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.num-rows.html" class="function">mysqli_stmt_num_rows()</a></span></td>
     <td>N/A</td>
     <td>查阅属性<a href="mysqli-stmt.num-rows.html" class="link">$mysqli_stmt-&gt;num_rows</a></td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.prepare.html" class="methodname">mysqli_stmt->prepare()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.prepare.html" class="function">mysqli_stmt_prepare()</a></span></td>
     <td>N/A</td>
     <td>准备一个SQL语句用于执行</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.reset.html" class="methodname">mysqli_stmt->reset()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.reset.html" class="function">mysqli_stmt_reset()</a></span></td>
     <td>N/A</td>
     <td>重置一个prepared语句</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.result-metadata.html" class="methodname">mysqli_stmt->result_metadata()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.result-metadata.html" class="function">mysqli_stmt_result_metadata()</a></span></td>
     <td><span class="function"><a href="function.mysqli-get-metadata.html" class="function">mysqli_get_metadata()</a></span></td>
     <td>从一个prepared语句返回结果集元数据</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.send-long-data.html" class="methodname">mysqli_stmt->send_long_data()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.send-long-data.html" class="function">mysqli_stmt_send_long_data()</a></span></td>
     <td><span class="function"><a href="function.mysqli-send-long-data.html" class="function">mysqli_send_long_data()</a></span></td>
     <td>发送数据块</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-stmt.store-result.html" class="methodname">mysqli_stmt->store_result()</a></span></td>
     <td><span class="function"><a href="mysqli-stmt.store-result.html" class="function">mysqli_stmt_store_result()</a></span></td>
     <td>N/A</td>
     <td>从一个prepared语句中传输一个结果集</td>
    </tr>

   </tbody>
  
 </table>


 <table class="doctable informaltable">
  
   <thead>
    <tr>
     <th>MySQLi_RESULT</th>
    </tr>

    <tr>
     <th>面向对象接口</th>
     <th>过程化接口</th>
     <th>别名（不要使用）</th>
     <th>描述</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td><em class="emphasis">属性</em></td>
    </tr>

    <tr>
     <td><a href="mysqli-result.current-field.html" class="link">$mysqli_result-&gt;current_field</a></td>
     <td><span class="function"><a href="mysqli-result.current-field.html" class="function">mysqli_field_tell()</a></span></td>
     <td>N/A</td>
     <td>获取当前字段在结果集指针中的开始位置</td>
    </tr>

    <tr>
     <td><a href="mysqli-result.field-count.html" class="link">$mysqli_result-&gt;field_count</a></td>
     <td><span class="function"><a href="mysqli-result.field-count.html" class="function">mysqli_num_fields()</a></span></td>
     <td>N/A</td>
     <td>获取结果中字段数量</td>
    </tr>

    <tr>
     <td><a href="mysqli-result.lengths.html" class="link">$mysqli_result-&gt;lengths</a></td>
     <td><span class="function"><a href="mysqli-result.lengths.html" class="function">mysqli_fetch_lengths()</a></span></td>
     <td>N/A</td>
     <td>返回结果集中哦功能当前行的列长度</td>
    </tr>

    <tr>
     <td><a href="mysqli-result.num-rows.html" class="link">$mysqli_result-&gt;num_rows</a></td>
     <td><span class="function"><a href="mysqli-result.num-rows.html" class="function">mysqli_num_rows()</a></span></td>
     <td>N/A</td>
     <td>获取结果中行的数量</td>
    </tr>

    <tr>
     <td><em class="emphasis">方法</em></td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.data-seek.html" class="methodname">mysqli_result->data_seek()</a></span></td>
     <td><span class="function"><a href="mysqli-result.data-seek.html" class="function">mysqli_data_seek()</a></span></td>
     <td>N/A</td>
     <td>将结果中的结果指针调整到任意行</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.fetch-all.html" class="methodname">mysqli_result->fetch_all()</a></span></td>
     <td><span class="function"><a href="mysqli-result.fetch-all.html" class="function">mysqli_fetch_all()</a></span></td>
     <td>N/A</td>
     <td>抓取所有的结果行并且以关联数据，数值索引数组，或者两者皆有的方式返回结果集。仅可用于 <a href="book.mysqlnd.html" class="link">mysqlnd</a>。</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.fetch-array.html" class="methodname">mysqli_result->fetch_array()</a></span></td>
     <td><span class="function"><a href="mysqli-result.fetch-array.html" class="function">mysqli_fetch_array()</a></span></td>
     <td>N/A</td>
     <td>以一个关联数组，数值索引数组，或者两者皆有的方式抓取一行结果</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.fetch-assoc.html" class="methodname">mysqli_result->fetch_assoc()</a></span></td>
     <td><span class="function"><a href="mysqli-result.fetch-assoc.html" class="function">mysqli_fetch_assoc()</a></span></td>
     <td>N/A</td>
     <td>以一个关联数组方式抓取一行结果</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.fetch-field-direct.html" class="methodname">mysqli_result->fetch_field_direct()</a></span></td>
     <td><span class="function"><a href="mysqli-result.fetch-field-direct.html" class="function">mysqli_fetch_field_direct()</a></span></td>
     <td>N/A</td>
     <td>抓取一个单字段的元数据</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.fetch-field.html" class="methodname">mysqli_result->fetch_field()</a></span></td>
     <td><span class="function"><a href="mysqli-result.fetch-field.html" class="function">mysqli_fetch_field()</a></span></td>
     <td>N/A</td>
     <td>返回结果集中的下一个字段</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.fetch-fields.html" class="methodname">mysqli_result->fetch_fields()</a></span></td>
     <td><span class="function"><a href="mysqli-result.fetch-fields.html" class="function">mysqli_fetch_fields()</a></span></td>
     <td>N/A</td>
     <td>返回一个代表结果集字段的对象数组</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.fetch-object.html" class="methodname">mysqli_result->fetch_object()</a></span></td>
     <td><span class="function"><a href="mysqli-result.fetch-object.html" class="function">mysqli_fetch_object()</a></span></td>
     <td>N/A</td>
     <td>以一个对象的方式返回一个结果集中的当前行</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.fetch-row.html" class="methodname">mysqli_result->fetch_row()</a></span></td>
     <td><span class="function"><a href="mysqli-result.fetch-row.html" class="function">mysqli_fetch_row()</a></span></td>
     <td>N/A</td>
     <td>以一个枚举数组方式返回一行结果</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.field-seek.html" class="methodname">mysqli_result->field_seek()</a></span></td>
     <td><span class="function"><a href="mysqli-result.field-seek.html" class="function">mysqli_field_seek()</a></span></td>
     <td>N/A</td>
     <td>设置结果指针到特定的字段开始位置</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-result.free.html" class="methodname">mysqli_result->free()</a></span>,
      <a href="mysqli-result.free.html" class="link">mysqli_result-&gt;close</a>,
      <a href="mysqli-result.free.html" class="link">mysqli_result-&gt;free_result</a></td>
     <td><span class="function"><a href="mysqli-result.free.html" class="function">mysqli_free_result()</a></span></td>
     <td>N/A</td>
     <td>释放与一个结果集相关的内存</td>
    </tr>

   </tbody>
  
 </table>


 <table class="doctable informaltable">
  
   <thead>
    <tr>
     <th>MySQL_Driver</th>
    </tr>

    <tr>
     <th>面向对象接口</th>
     <th>过程化接口</th>
     <th>别名（不要使用）</th>
     <th>描述</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td><em class="emphasis">属性</em></td>
    </tr>

    <tr>
     <td>N/A</td>
    </tr>

    <tr>
     <td><em class="emphasis">方法</em></td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-driver.embedded-server-end.html" class="methodname">mysqli_driver->embedded_server_end()</a></span></td>
     <td><span class="function"><a href="mysqli-driver.embedded-server-end.html" class="function">mysqli_embedded_server_end()</a></span></td>
     <td>N/A</td>
     <td>没有文档</td>
    </tr>

    <tr>
     <td><span class="methodname"><a href="mysqli-driver.embedded-server-start.html" class="methodname">mysqli_driver->embedded_server_start()</a></span></td>
     <td><span class="function"><a href="mysqli-driver.embedded-server-start.html" class="function">mysqli_embedded_server_start()</a></span></td>
     <td>N/A</td>
     <td>没有文档</td>
    </tr>

   </tbody>
  
 </table>


 <blockquote class="note"><p><strong class="note">Note</strong>: 
  <p class="para">
  别名函数仅仅是为了提供向后兼容的目的而存在。在新的项目中不要使用它们。
  </p>
 </p></blockquote>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqli.notes.html">Notes</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.mysqli.html">MySQLi</a></div>
 <div class="up"><a href="book.mysqli.html">Mysqli</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
